package com.warren.beans.factory.support;

import com.warren.error.BeansException;
import com.warren.core.io.Resource;
import com.warren.core.io.ResourceLoader;

/**
 * @author warren
 * @create 2021-08-19 13:44
 * @Description Bean 定义读取接口
 */
public interface BeanDefinitionReader {
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    //加载bean定义
    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String... locations) throws BeansException;
}
